{if $ownerMode}
    {literal}
    <style>
        .ow_edit_profile_link
        {
            position: absolute;
            right: 0px;
            top: 0px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        $(function(){
            $(".user_profile_data").hover(
              function(){
                $("#edit-profile").fadeIn();
              },
              function(){
                $("#edit-profile").fadeOut();
              }
          );
       });
    </script>
    {/literal}
{/if}

<div style="position:relative;">
    <div class="user_profile_data">

    <div class="user_view_menu">
        {$menu}
    </div>

    {if $ownerMode}
        <div style="display: none;" id="edit-profile" class="ow_edit_profile_link">
            <a class="ow_lbutton" href="{$profileEditUrl}">{text key='base+edit_profile_link'}</a>
        </div>
    {/if}

    {foreach  from=$questionArray key='section' item='questions'}
        <table class="ow_table_3 ow_nomargin section_{$section} data_table" {if $firstSection !== $section}style="display:none;"{/if}>
            {foreach  from=$questions key='sort' item='question'}
                {if isset( $questionData[$question.name] ) }
                    <tr>
                        <td class="ow_label" style="width: 20%">{text key="base+questions_question_`$question.name`_label"}</td>
                        <td class="ow_value">{$questionData[$question.name]}</td>
                    </tr>
                {/if}
            {/foreach}
        </table>
    {/foreach}
    </div>
</div>

